<script setup>
import { ref } from 'vue'
let props0 = defineProps({
  control: Object,
  formProps: Object,
  enData: Object
})

const props = ref()
props.value = props0
function requiredChange(value) {
  props.value.control.rules[0].required = value;
}

function requiredMessageChange(value) {
  props.value.control.rules[0].message = value;
}
</script>

<template>
  <el-form label-width="90px">
    <el-form-item label="中文名称111">
      <el-input v-model="props.control.props.label" placeholder="请输入中文名称"
        :disabled="props.control.props.disabled"></el-input>
    </el-form-item>
    <el-form-item label="填写提示">
      <el-input v-model="props.control.props.placeholder" placeholder="请输入填写提示"></el-input>
    </el-form-item>
    <el-form-item label="描述信息">
      <el-input type="textarea" rows="5" v-model="props.control.props.remark" placeholder="请输入描述信息"></el-input>
    </el-form-item>
    <el-form-item label="是否必填">
      <el-switch @change="requiredChange" v-model="props.control.props.required"></el-switch>
    </el-form-item>
    <el-form-item label="必填提示" v-if="props.control.props.required">
      <el-input @change="requiredMessageChange" v-model="props.control.props.requiredMessage"></el-input>
    </el-form-item>
  </el-form>
</template>
